<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>凯盛项目管理系统</title>
   	<link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  
  <body class="body">
    <%@ include file="include/top.jsp"  %>
	
	<div class="container" style="padding-top:60px">
		<div class="row">
			
			<jsp:include page="include/side.jsp">
				<jsp:param value="contact" name="tag"/>
			</jsp:include>
			
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px">
					<li class="active"><a href="task.html"><i class="icon-user"></i>联系人</a></li>
				</ul>
				
				<div class="wall" style="margin-top:20px">
					<div class="row">
						<div class="span3">
							<div class="btn span2">所有联系人</div>
							<div class="clear"></div>
							<ul class="unstyled" style="margin-top:50px">
								<c:forEach items="${sessionScope.contactlist}" var="p">
									<li style="line-height:30px;padding-left:20px">
										<i class="icon-list-alt"></i><a href="contact.jspx?m=show&id=${p.id }">${p.name }</a>
									</li>
								</c:forEach>
							</ul>
						
						</div>
						
						 
						<div class="span4" style="border-left:1px solid #ccc;padding-left:40px">
						
							<address>
								<h3>${con.name }</h3>
								<p>${con.company }</p>
								<small>手机</small><img src="<%=request.getContextPath() %>/barcode?msg=${con.cellphone }" /><br>
								<small>固话</small>${con.phone }<br><br>
								<small>邮箱</small>${con.email }<br>
								<small>地址</small>${con.address }<br><br>
								<small>主页</small> <a href="#">${con.website }</a><br>
								<small>微博</small> <a href="#">${con.weibo }</a><br>
							</address>
							<a href="contactnote.jspx?m=add&id=${con.id }"><i class="icon-plus icon-write"></i>记录</a>
							
									<blockquote>
							 			 周六一起玩
							  			<small>lily发布于 2012年8月15日10时26分</small>
									</blockquote>
									<blockquote>
							 			 下午一起吃饭
							  			<small>lily发布于 2012年8月15日10时35分</small>
									</blockquote>
									<blockquote>
							 			 明天聚会
							  			<small>lily发布于 2012年8月15日10时27分</small>
									</blockquote>
									
							
							<a href="contactnote.jspx?conid=${con.id }">查看所有记录</a>
							
							<br><br><br>
							<a class="btn btn-primary" href="contact.jspx?m=edit&id=${con.id }"><i class="icon-pencil icon-white"></i>编辑</a>
							<a class="btn btn-danger" href="contact.jspx?m=del&id=${con.id }"><i class="icon-trash icon-white"></i>删除</a>
						
						</div>
							
						
					</div>
				</div>
				
			</div>
		</div>
	</div>
  </body>
</html>
